import request from '@/utils/request'


// 列表
export function applyList(query) {
    return request({
        url: '/h5/apply/list',
        method: 'get',
        params: query
    })
}
// 新增
export function addApply(data) {
    return request({
        url: '/h5/apply/addApply',
        method: 'post',
        data: data
    })
}

// 详情
export function applyInfo(partId) {
    return request({
        url: '/h5/apply/applyInfo/' + partId,
        method: 'get'
    })
}

// 修改
export function editApply(data) {
    return request({
        url: '/h5/apply/edit',
        method: 'put',
        data: data
    })
}

// 删除
export function removeApply(partId) {
    return request({
        url: '/h5/apply/removeApply/' + partId,
        method: 'delete'
    })
}